<template>
  <view :style="themeColor">
    <view class="page">
      <view
        class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex helpDetails_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-stretch justify-between helpDetails_fd0_0'>
          <view class='flex flex-wrap align-center helpDetails_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  helpDetails_fd0_0_c0_c0'>&#xe794;</text>
          </view>
          <view class='flex flex-wrap align-center'>
            <text class='helpDetails_fd0_0_c1_c0'>{{$t('问题详情')}}</text>
          </view>
          <view class='flex align-center justify-end helpDetails_fd0_0_c2'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout helpDetails_flex_1">
        <text class='helpDetails_fd1_0'>{{dataDetails.category_name}}</text>
        <jyf-parser class='helpDetails_fd1_1' :html="dataDetails.content | richTextFormat">
        </jyf-parser>
        <button class='helpDetails_fd1_2' @tap.stop="handleJumpDiy" data-type="navigateTo"
          :data-url="`/pages/xtsz/feedBack/feedBack`">{{$t('意见反馈')}}</button>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "dataDetails": {
          "aid": "",
          "title": "",
          "create_time": "",
          "content": "",
          "thumb": "",
          "category_name": ""
        },
        "id": "2"
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        id
      } = options
      if (id !== undefined) this.id = id
      this.getDetailFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //文章列表-获取文章详情
      async getDetailFunc() {
        //请求方法
        //数据验证 658bf39e1bd4a
        //
        let datadataDetails = await this.$api.post(global.apiUrls.post641576c24de11, {
          article_id: this.id
        });

        if (datadataDetails.data.code != 1) {
          this.$message.info(datadataDetails.data.msg);
          return
        }
        let infodataDetails = datadataDetails.data;
        this.dataDetails = infodataDetails.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(247, 243, 237, 1);
    background-size: 100% auto;
  }

  .helpDetails_flex_0 {
    background: rgba(247, 243, 237, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .helpDetails_fd0_0_c2 {
    padding: 0rpx 0rpx 0rpx 0rpx;
    width: 100rpx;
  }

  .helpDetails_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: var(--benbenFontColor0);
  }

  .helpDetails_fd0_0_c0_c0 {
    font-size: 36rpx;
    font-weight: 400;
    color: #333;
  }

  .helpDetails_fd0_0_c0 {
    width: 100rpx;
  }

  .helpDetails_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
    line-height: 88rpx;
  }

  .helpDetails_flex_1 {
    padding: 0rpx 32rpx 32rpx 32rpx;
    margin: 0rpx 0rpx 64rpx 0rpx;
  }

  .helpDetails_fd1_2 {
    background: rgba(145, 47, 34, 1);
    border-radius: 44rpx 44rpx 44rpx 44rpx;
    font-size: 32rpx;
    color: var(--benbenFontColor3);
    width: 638rpx;
    height: 88rpx;
    line-height: 88rpx;
    position: fixed;
    bottom: calc(40rpx + var(--window-bottom));
    left: 53rpx;
  }

  ::v-deep .helpDetails_fd1_1 {
    width: 100%;
    margin: 0rpx 0rpx 180rpx 0rpx;
  }

  .helpDetails_fd1_0 {
    margin: 32rpx 0rpx 27rpx 0rpx;
    color: var(--benbenFontColor0);
    font-size: 32rpx;
    font-weight: 400;
    line-height: 45rpx;
  }
</style>
